<?php


namespace App\Http\Controllers\Admin;


class MailController extends AuthCheckController
{

    /**
     * @Auth(type='no_check')
     * Create by Peter
     * 2019/09/06 15:23:23
     * Email:904801074@qq.com
     */
    function send()
    {


        \Mail::send('mail.mail', [], function (\Illuminate\Mail\Message $message) {

            //发送给两个人
            $message->to('904801074@qq.com');
            $message->to('15827104268@163.com');

            $message->subject('content');

            $path = public_path('uploads/20190905/5d70cb2eaf72b.png');
            //发送两个附件
            $message->attach($path);
            $message->attach($path);

        });

    }
}
